package net.neocat.tcx.speed;

/**
 * Created with IntelliJ IDEA.
 * User: jschek
 * Date: 5/2/13
 * Time: 10:53 PM
 * To change this template use File | Settings | File Templates.
 */
public class ConstantSpeedCalculator extends AbstractSpeedCalculator {

    private final double speedMetersPerSecond;

    public ConstantSpeedCalculator(double speedMetersPerSecond) {
        this.speedMetersPerSecond = speedMetersPerSecond;
    }

    @Override
    public double calculateMetersPerSecond(double powerWatts, int cadence, double grade, double altitudeMeters) {
        return speedMetersPerSecond;
    }

}
